<?php
/**
 * Created by PhpStorm.
 * User: Lee
 * Date: 2020/1/3
 * Time: 9:51
 */
namespace App\Services\Backend\System;

use App\Common\Exception\ErrorException;

/**
 * 系统管理-事件类型 (服务)
 */
class EventtypeService
{
    /** @var \App\Repositories\Backend\System\EventtypeRepository $eventtypeRepository */
    private $eventtypeRepository;

    public function __construct()
    {
        $this->eventtypeRepository = app('eventtypeRepository');
    }

    //*******************外部调用方法****************************************************
    public function getCore($id, $keyName = 'eventtypeid',$columns = ['*']){
        return $this->eventtypeRepository->get($id,$keyName,$columns);
    }

}
